layui.config({
    base: "/modules/"
})
layui.use(["app"], function () {
    let app = layui.app
    // 配置
    app.init({
        component: "/component",
        middleware: [
            "/middleware/login.js"
        ],
        route: [
            { name: "home", path: "/", page: "/app/home.html" },
            { name: "login", path: "/login", page: "/app/login.html" }
        ]
    })
})